of

open fun of(name: String, value: String): HttpHeader

Returns an instance of the HttpHeader with the given name and value.

Parameters

name

the name of the HTTP header

value

the value of the HTTP header

Throws

when name is empty or blank